trigger DeleteOutletAuditHistory  on OutletAuditHistory__c (before delete) {
    for(OutletAuditHistory__c t:trigger.old){
        if(t.AuditDate__c <= date.today()){
            t.addError('该记录不能被删除!');
        }
    }
}